package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Account;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountMapper{
    Account getAccountByUsername(String username);

    Account getAccountByUsernameAndPassword(Account account);

    void insertAccount(Account account);

    void insertProfile(Account account);

    void insertSignon(Account account);

    void updateAccount(Account account);

    void updateProfile(Account account);

    void updateSignon(Account account);

    List<Account> getallAccount();

    List<Account> getallAccountprofile();

    List<Account> searchAccount(String keyword);

    List<Account> searchAccountprofile(String keyword);

    void deleteAccount(String username);

    void deleteprofile(String username);

    void deleteSignon(String username);

}
